﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TaxList.aspx.cs" Inherits="Admin.Tax.TaxList" %>

<%@ Register Src="~/UserControls/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>完税列表</title>
    <link href="/Admin/Css/rightbar.css?FileVersion=<%=FileVersion %>" rel="stylesheet"
        type="text/css" />
    <script src="/Admin/Scripts/jquery-1.4.1.min.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
</head>
<body id="wallet">
    <div class="warp">
        <div class="topnav" style="width: 880px;">
            <ul>
                <li><a href="javascript:void(0);" style="cursor: default;" class="on_nav"><span>完税信息查询</span></a></li>
                <%if (HasPower("TaxInput.aspx"))
                  { %>
                <li><a href="TaxInput.aspx"><span>新增完税记录</span></a></li><%} %>
            </ul>
        </div>
        <div class="tab mt15" style="width: 880px;">
            <ul>
                <li class="in_on"><strong>完税信息查询</strong></li>
            </ul>
        </div>
        <div class="cont" style="padding: 0; width: 878px;">
            <form id="searchForm" name="searchForm" action="TaxList.aspx">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="stb01">
                <tr>
                    <td style="padding-top: 0; padding-left: 15px;" align="left" valign="middle" bgcolor="#F3FBFE">
                        房产证编号：<input type="text" name="txtCertificateID" id="txtCertificateID" value="<%=certificateID %>"
                            style="width: 95px;" />
                    </td>
                    <td style="padding-top: 0;" height="34" align="left" valign="middle" bgcolor="#F3FBFE">
                        税款属期：<select id="selYear" name="selYear" style="width: 65px;">
                            <%=CreateYear(year) %>
                        </select>
                    </td>
                    <td style="padding-top: 0;" height="34" align="left" valign="middle" bgcolor="#F3FBFE">
                        完税状态：<select id="selIsTaxOK" name="selIsTaxOK" style="width: 65px;">
                            <option value="">请选择</option>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </td>
                    <td style="padding-top: 0;" height="34" align="left" valign="middle" bgcolor="#F3FBFE">
                        房产类型：<select id="selHouseType" name="selHouseType" style="width: 65px;">
                            <option value="">请选择</option>
                            <option value="自用">自用</option>
                            <option value="出租">出租</option>
                        </select>
                    </td>
                    <td style="padding-top: 0; padding-right: 20px;" valign="middle" align="right" bgcolor="#F3FBFE">
                        <div class="pl10">
                            <input name="imageField" id="Button1" type="submit" value="搜 索" /></div>
                    </td>
                </tr>
            </table>
            </form>
            <table width="878px" border="0" cellspacing="0" cellpadding="0" class="maintb" style="border-top: 0;"
                id="tbDataList">
                <asp:Repeater ID="rptDataList" runat="server">
                    <HeaderTemplate>
                        <tr>
                            <th width="60" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                税款属期
                            </th>
                            <th width="100" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                房产证
                            </th>
                            <th width="70" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                房产类型
                            </th>
                            <th width="65" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                是否完税
                            </th>
                            <th width="95" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                完税日期
                            </th>
                            <th width="95" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                起止日期
                            </th>
                            <th width="105" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                税款总额
                            </th>
                            <th  width="160"height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                税款明细
                            </th>
                            <%//if (UserLogin.UserEType == BaseData.UserType.ShuizhengKezhang || UserLogin.UserEType == BaseData.UserType.SuperManager)
                              if(isHasModifyPower)
                              { %>
                            <th height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                修改
                            </th>
                            <th height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                删除
                            </th>
                            <%}%>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Eval("Year")%>
                            </td>
                            <td align="center">
                                <%#Eval("CertificateID")%>
                            </td>
                            <td align="center">
                                <%#Eval("HouseType")%>
                            </td>
                            <td align="center">
                                <%#Eval("IsTaxOK").ToString() == "1" ? "是" : "否" %>
                            </td>
                            <td align="center">
                                <%#FormatData<DateTime>(Eval("ComDate"), "yyyy-MM-dd")%>
                            </td>
                            <td align="center" style="line-height:normal;">
                                <%#FormatData<DateTime>(Eval("StartDate"), "yyyy-MM-dd")%><br /><%#FormatData<DateTime>(Eval("EndDate"), "yyyy-MM-dd")%>
                            </td>
                            <td align="center">
                                <%#Eval("TotalTax")%>
                            </td>
                            <td align="left">
                                <%# Eval("CompleteTax")%>
                            </td>
                            <%if (UserLogin.UserEType == BaseData.UserType.ShuizhengKezhang || UserLogin.UserEType == BaseData.UserType.SuperManager)
                              { %>
                            <td align="center">
                                <a href='TaxModify.aspx?ID=<%#Eval("id") %>'>
                                    <img src="/Admin/Images/bluestyle/edit.gif" alt="修改" width="15" height="15" border="0" /></a>
                            </td>
                            <td align="center">
                                <a href='?action=stop&ID=<%#Eval("id") %>&pageurl=<%=Server.UrlEncode(pageUrl) %>'
                                    onclick="return window.confirm('确认删除该完税吗？');">
                                    <img src="/Admin/Images/bluestyle/icodelb.gif" alt="删除" width="11" height="13" border="0" /></a>
                            </td>
                            <%} %>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <div style="text-align: right;" style="width: 880px;">
            <form runat="server" id="pageForm24">
            <uc1:PageControl ID="pageCountrol" runat="server" />
            </form>
        </div>
    </div>
    <script type="text/javascript">
        //隔行变色
        jQuery(function ($) {
            $("#tbDataList tr:even").css("background-color", "#F9F9F9");
            $(":input[name='selHouseType']").val('<%=houseType %>');
            $(":input[name='selYear']").val('<%=year %>');
            $(":input[name='selIsTaxOK']").val('<%=isTaxOK %>');
        });

        //删除完税（暂时未用）
        function DelUser(ID) {
            if (window.confirm("确定要删除该完税")) {
                window.location.href = '/Admin/SysConfig/DepartList.aspx?userid=' + ID;
                return false;
            }
            else {
                return false;
            }
        }
    </script>
</body>
</html>
